package Study;

public class study {
    public static int  JieCheng(int num) {
        if (num == 0 || num == 1) {
            return 1;
        } else {
            return num * JieCheng(num - 1);
        }
    }

    public static void main(String[] args) {
        System.out.println(JieCheng(6));
    }
}
